ReactiveWindow class¶
Defined in
Namespace: Avalonia.ReactiveUI
Assembly: ReactiveUI.Avalonia.Autofac.dll
Full name: Avalonia.ReactiveUI.ReactiveWindow<T>
Modifiers: public
Summary¶
A ReactiveUI Window that implements the IViewFor interface and will
activate your ViewModel automatically if the view model implements IActivatableViewModel. When
the DataContext property changes, this class will update the ViewModel property with the new DataContext value,
and vice versa.
Applies to
netstandard2.0, netstandard2.0, netstandard2.0, netstandard2.0, netstandard2.0
Class hierarchy
classDiagram
class ReactiveWindow~T~
class Window
Window <|-- ReactiveWindow~T~
class IViewFor~TViewModel~ {
<>
}
IViewFor~TViewModel~ <|.. ReactiveWindow~T~
class IViewFor {
<>
}
IViewFor <|.. ReactiveWindow~T~
class IActivatableView {
<>
}
IActivatableView <|.. ReactiveWindow~T~
Inherits from: Window
Implements: IViewFor<TViewModel>, IViewFor, IActivatableView
Constructors¶
| Name | Summary |
|---|---|
| .ctor | Initializes a new instance of the [ReactiveWindow](# class. |
Properties¶
| Name | Summary |
|---|---|
| ViewModel | Gets or sets the ViewModel. |
Fields¶
| Name | Summary |
|---|---|
| static ViewModelProperty | The view model property. |